package Day07_28;

public class Test_Package_class {
    public static void main(String[] args) {
        //因为基本数据类型，不够用了。所以产生了包装类
        Integer a = new Integer(16);
       // Test_Package_class.doSome(new Object());
        Test_Package_class.doSome(a);
        }
        public static void doSome(Object obj){
            System.out.println(obj);
    }
}
class MyInteger{
   private int value;

    public MyInteger() {
    }

    public MyInteger(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
    public String toString(){
        return String.valueOf(this.value);
    }
}
